package edu.je.prs.vo;

import lombok.Data;

import java.util.Objects;

/**
 * @Description:
 * @author: Anhlaidh
 * @date: 2021-04-23 15:40
 */
@Data
public class AnalyzedPopularityVo {
    String name;
    double value;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AnalyzedPopularityVo that = (AnalyzedPopularityVo) o;
        return name.equals(that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
